package com.itheima.job;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingService;
import com.itheima.utils.DateUtils;

import java.util.Date;

public class ClearOrderSettingJob {

	@Reference
	private OrderSettingService orderSettingService;


	public void ClearOrderSettingJob(){
		String todayDateStr = DateUtils.parseDate2String(new Date());
		orderSettingService.delHistoryOrderSetting(todayDateStr);
		System.out.println("删除了数据");
	}
}
